package com.hxd.service;

import java.io.IOException;

import org.springframework.web.multipart.MultipartFile;

import com.hxd.base.BaseService;
import com.hxd.entity.SysOss;
import com.hxd.pojo.SysOssVO;

/**
 * <p>
    * 附件表 服务类
    * </p>
 *
 * @author zhoujw
 * @since 2019-12-19
 * @version v1.0
 */
public interface SysOssService extends BaseService<SysOss, SysOssVO> {
	
	boolean isImage(String fileName);
	
	boolean isVedio(String fileName);
	
	/**
	 * 分片上传
	 * @param guid uid
	 * @param chunk 第几片
	 * @param chunks 总片数
	 * @param file 分片文件
	 * @throws IOException
	 */
	void uploadFile(String guid, Integer chunk, Integer chunks, MultipartFile file) throws IOException;
	
}
